# Contributor:
# Maintainer: Jay Christopherson <jaychris@gmail.com>
pkgname=udpcast
pkgver=20211207
pkgrel=0
pkgdesc="Port of UDPcast file transfer tool"
url="https://www.udpcast.linux.lu/index.html"
arch="all"
license="GPL-2.0-or-later AND BSD-2-Clause"
makedepends="$depends_dev linux-headers m4 perl"
subpackages="$pkgname-doc $pkgname-dev"
source="https://www.udpcast.linux.lu/download/udpcast-$pkgver.tar.gz
	console.patch
	fix-includes.patch
	"

build() {
	./configure --prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
89010c781d99a60e335213e88867c9114b51f3d75bd4ebfa38bcd1382e5925be4f316faf8c24ea55b087edb2115e18b5fd3cceac70a65371f91227528d218e89  udpcast-20211207.tar.gz
7abfcf317b5985f680258abc913a48cfd21a26f77625780e57d93960f7efeb0f214ce4d4188bd75cedb9dccac5a5fe9befed2044e3df3b0e8228ac6e0663c41c  console.patch
f10cc923f445fc5e0e828d2e7d21febcaa16a1ec65538c5736ae4eadd3251ab65740b827f9d5bfb77b5ce5908a490588751d349cf5f711a41951ddcee090de8a  fix-includes.patch
"
